<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet"
	type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet"
	type="text/css" />
<link href="lib/videojs/css/video-js.css" rel="stylesheet"
	type="text/css" />

<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>新增U_circle_post</title>
</head>
<body>
	<div class="pd-20">
		<form action="%=path%>/backstage/u_circle_post-add" method="post"
			class="form form-horizontal" id="form-u_circle_post-add">
			<input type="hidden" id="id" name="id" value='${u_circle_post.id}' />

			<div class="row cl">
				<label class="form-label col-2">所属圈子：</label>
				<div class="formControls col-2">${u_circle_post.circle_name}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">发帖人：</label>
				<div class="formControls col-2">${u_circle_post.usernickname}
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">发帖时间：</label>
				<div class="formControls col-2">${u_circle_post.add_time}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">帖子内容：</label>
				<div class="formControls col-2">${u_circle_post.content}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">是否匿名：</label>
				<div class="formControls col-2">
					<c:choose>
						<c:when test="${u_circle_post.is_anonymous==1}">
							匿名
						</c:when>
						<c:otherwise>
							不匿名
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			<%-- <div class="row cl">
				<label class="form-label col-2">是否删除0否， 1是：</label>
				<div class="formControls col-2">
					<input type="text" class="input-text"
						value="${u_circle_post.is_delete}" placeholder="" id=""
						name="is_delete" datatype="*" nullmsg="不能为空">
				</div>
			</div> --%>
			<div class="row cl">
				<label class="form-label col-2">发帖时的纬度：</label>
				<div class="formControls col-2">${u_circle_post.latitude}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">发帖时的经度：</label>
				<div class="formControls col-2">${u_circle_post.longitude}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-2">资源：</label>
				<div class="formControls col-2">
					<c:if
						test="${!empty u_circle_post.post_resource and u_circle_post.post_resource!=''}">
						<c:forEach items="${fn:split(u_circle_post.post_resource,':')}"
							var="resource">
							<c:if test="${fn:indexOf(resource,'png')>0}">
								<img style="width: 190px; height: 190px;" src="${resource}" />
							</c:if>
							<c:if test="${fn:indexOf(resource,'mp4')>0}">
								<video id="my-video" class="video-js" controls preload="auto"
									width="400" height="300"
									poster="${resource}?vframe/png/offset/3" data-setup="{}">
									<source src="${resource}" type="video/mp4">
									<p class="vjs-no-js">
										To view this video please enable JavaScript, and consider
										upgrading to a web browser that <a
											href="http://videojs.com/html5-video-support/"
											target="_blank">supports HTML5 video</a>
									</p>
								</video>
								<script type="text/javascript" src="js/videojs/js/video.min.js"></script>
								<script type="text/javascript">
									var myPlayer = videojs('my-video');
									videojs("my-video").ready(function() {
										var myPlayer = this;
										myPlayer.play();
									});
								</script>
							</c:if>
						</c:forEach>
					</c:if>
				</div>
			</div>

			<div class="row cl">
				<div class="col-10 col-offset-2">
					<button onClick="u_circle_post_save_submit();"
						class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 保存并提交
					</button>
					<button onClick="layer_close();" class="btn btn-default radius"
						type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
	<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script>
	<script type="text/javascript"
		src="lib/Validform/5.3.2/Validform.min.js"></script>
	<script type="text/javascript"
		src="lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.all.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="js/H-ui.js"></script>
	<script type="text/javascript" src="js/H-ui.admin.js"></script>
	<script type="text/javascript" src="js/uthinkjs/circle.js?v=1.5"></script>
</body>
</html>

